package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 机构表
 * @TableName yd_organization
 */
@TableName(value ="yd_organization")
@Data
public class YdOrganization implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 机构编号
     */
    @TableField(value = "org_no")
    private String orgNo;

    /**
     * 机构简称
     */
    @TableField(value = "org_abr")
    private String orgAbr;

    /**
     * 父机构id
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 机构显示顺序
     */
    @TableField(value = "sort")
    private String sort;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 删除标记，0未删除，1删除
     */
    @TableField(value = "delete_flag")
    private String deleteFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}